home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Shareware World / Shareware Feature / PageSpinner 2.0.1 / Examples / JavaScript / Redirect_JavaScript_browsers < prev    next >
Text File  |  1997-06-17  |  1KB  |  36 lines

  1. <HTML><HEAD>
  2. <TITLE>Redirect JavaScript-browsers</TITLE>
  3.  
  4. <SCRIPT LANGUAGE="JavaScript">
  5. <!-- Beginning of JavaScript --------
  6. /* 
  7.     Redirect JavaScript
  8.     The line below will automatically load the specified page in
  9.     a browser that support javascript, while non JavaScript-enabled 
  10.     browsers will ignore the command and display this page.
  11.     
  12.     This is useful if you rely on JavaScript in some pages, 
  13.     and want to display non-JavaScript pages to viewers with 
  14.     other browsers.
  15. */
  16.  
  17.     this.location = "Redirect_JavaScript_to_here";
  18.  
  19. // -- End of JavaScript code -------------- -->
  20. </SCRIPT>
  21.  
  22. </HEAD>
  23. <BODY >
  24.  
  25. <H1>Redirect JavaScript-browsers</H1>
  26.  
  27. <B>This page will be displayed in non JavaScript-enabled browsers </B>
  28. <P>
  29. There is a single line of JavaScript that will redirect browsers that support JavaScript to another page. Browsers that don't support JavaScript will display this page.
  30. <P>
  31. This is useful if you rely on JavaScript in some pages,  and want to display non-JavaScript pages to viewers with other browsers.
  32. <P>
  33. Keep the contents in this page short, since it may be briefly displayed before the JavaScript page has loaded:  a message that the page needs a JavaScript enabled browser and maybe a link to non-JavaScript pages, would be appropriate contents of this page.
  34. </BODY>
  35. </HTML>
  36.